/**
 * Created by IsZxm on 2018/1/22.
 */
$(document).ready(function () {

    $('.search').focus(function () {
        if ($(this).val() == $(this).attr('title'))
            $(this).val("");
    });
    $('.search').blur(function(){
        if($(this).val()=="")
            $(this).val($(this).attr('title'));
    });
    $("img").addClass("img-responsive center-block");
    
    // 异步请求大轮播图信息
	/*$.ajax({
		url : "http://localhost:8080/rest/token/" + _ticket,
		dataType : "jsonp",
		type : "GET",
		success : function(data){
			if(data.status == 200){
				var username = data.data.username;
				var html = username + "，欢迎来到淘淘！<a href=\"http://www.taotao.com/user/logout.html\" class=\"link-logout\">[退出]</a>";
				$("#loginbar").html(html);
			}
		}
	});*/
  
});